package cn.crm.spring.repository;


import cn.crm.spring.pojo.Storage;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

public interface StorageRepository extends JpaRepository<Storage,Integer>, JpaSpecificationExecutor<Storage> {

    public Page<Storage> findByStkWarehouseLikeAndProduct_ProdNameLike (Pageable pageable,
                                                                        String stkWarehouse,
                                                                        String prodName);

}
